import type {
  AxiosRequestConfig,
  AxiosResponse,
  AxiosError,
  AxiosRequestHeaders
} from "axios"
export interface HYRequestInterceptors {
  requestInterceptors?: (
    config: AxiosRequestConfig | any
  ) => AxiosRequestConfig | any
  requestInterceptorsCatch?: (error: AxiosError) => AxiosError
  responseInterceptor?: (config: AxiosResponse | any) => AxiosResponse | any
  responseInterceptorCatch?: (error: AxiosError) => AxiosError
}
export interface HYRequestConfig extends AxiosRequestConfig {
  interceptors?: HYRequestInterceptors
  headers?: AxiosRequestHeaders
  showLoading?: boolean
}
